package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.ExamStore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExamStoreMapper extends BaseMapper<ExamStore> {
    @Select("SELECT * FROM exam_store WHERE status = #{status} LIMIT #{begin}, #{pageSize}")
    List<ExamStore> getExamStoreList(@Param("begin") int begin, @Param("pageSize") Integer pageSize,
                                     @Param("status") Integer status);
}
